package tec;
import poounit.RunTest;
import poounit.Test;
import java.util.Scanner;
import java.io.*;

public class LancerTests extends OptionClient{
    public static void main(String[] args) throws ClassNotFoundException,TecInvalidException, IOException{
    boolean estMisAssertion = false;
    assert estMisAssertion = true;

    if (!estMisAssertion) {
      System.out.println("Execution impossible sans l'option -ea");
      return;
    }
    LancerTests l = new LancerTests();
    l.choixTypeExecution("tous les tests");
  
    }
    
    
    
public void lancer() throws TecInvalidException{ 
    
    new RunTest(AgoraphobeTest.class).run();
    new RunTest(PassagerAbstraitExceptionTest.class).run();
    new RunTest(AutobusTest.class).run();
    new RunTest(CalmeTest.class).run();
    new RunTest(FatigueTest.class).run();
    new RunTest(JaugeNaturelTest.class).run();
    new RunTest(NerveuxTest.class).run();
    new RunTest(PoliTest.class).run();
    new RunTest(PrudentTest.class).run();
    new RunTest(ReposTest.class).run();
    new RunTest(SportifTest.class).run();
    new RunTest(TetuTest.class).run();

    System.err.println("\nLe nombre de Tests effectue est :"+ RunTest.getNbTest());
    System.err.println("Le nombre de Tests valides est :"+ RunTest.getNbTestValide());
    System.err.println("Le nombre d'exceptions levees est :"+ RunTest.getNbException());
    System.err.println("Le nombre de tests en echec est :"+ RunTest.getNbTestEchoue());
    
    System.out.println("");
    System.out.println("");

    System.out.println("Fin des Tests");

}


}



